package com.gang.ssm.bos.system.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gang.ssm.bos.system.bean.Function;
import com.gang.ssm.bos.system.bean.FunctionExample;

public interface FunctionMapper {
    long countByExample(FunctionExample example);

    int deleteByExample(FunctionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Function record);

    int insertSelective(Function record);

    List<Function> selectByExample(FunctionExample example);

    Function selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Function record, @Param("example") FunctionExample example);

    int updateByExample(@Param("record") Function record, @Param("example") FunctionExample example);

    int updateByPrimaryKeySelective(Function record);

    int updateByPrimaryKey(Function record);

	public List<Function> findByLimit(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize);

	public List<Function> findAllMenu();

	public List<Function> findAllMenuByUserId(Integer id);

	public List<Function> findByUserId(Integer id);
}